package com.xhui.vimarket.zkplus.utils;

import org.zkoss.zk.ui.Desktop;
import org.zkoss.zkmax.ui.util.DesktopRecycle;

public class MyRecycle extends DesktopRecycle {
    protected boolean shallCache(Desktop desktop, String path, int cause) {
        boolean cache = false;
        
        /*
        if (cache == false)
            cache = path.startsWith("/pub");
        */
        
        if (cache == false)
            cache = path.indexOf("region") >= 0;
        
        return cache;
    }
    
    protected boolean shallReuse(Desktop desktop, String path, int secElapsed) {
        return secElapsed >= 300;
    }
}
